package com.hanhai.zrb.api.biz.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.hanhai.zrb.model.fund.Fund;
import com.hanhai.zrb.model.fund.dto.FundDto;
import com.hanhai.zrb.model.fund.dto.FundSearchDto;
import com.hanhai.zrb.model.fund.vo.FundSearchVo;
import com.hanhai.zrb.model.photo.PhotoFundVo;
import com.hanhai.zrb.model.photo.PhotoVo;


public interface FundService {
	
	String notifySubject_change_authstatus = "fund_auth_change";

	Map<Long,Fund> queryByIdList(List<Long> list);
	
	List<Fund> queryByCondition(FundDto dto);
	
	List<Fund> queryPageByIntentionIds(List<Long> list,Date pushTime,Integer limit,Integer state);

	
	PageInfo queryFundByFSearchDto(FundSearchDto dto,Map<String, Map<String, Object>> backUserMap, Integer page, Integer rows);
	boolean upageStatus(List<Long> ids,String status,Long operatorId);
	boolean deleteFund(List<Long> ids);
	boolean updateStatus(Long id,String status,Long operatorId);
	boolean  updateByPrimaryKeySelective( Fund record );
	boolean insert(Fund record);

	
	Fund  findById (Long id);
	List<Fund> queryFundByFundNo(String fundNo,List<Long> ids);
	
	public int countAllUserFund(Long uid);

	PhotoFundVo viewPhoto(Long id);
	
	public List<Fund> queryByIdsList(List<Long> list);
	
	List<FundSearchVo> findFundSearchVo (List<Long> list);
}
